package com.tl.web05.model.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 * 用户实体类
 * 这里使用lombok的注解,他可以自动的在编译期生成get和set方法,还可以生成构造方法
 */
@Data
@NoArgsConstructor
@AllArgsConstructor

public class User implements Serializable {
    private Integer id;
    private String username;
    private String password;
    private String nickname;
    private Integer age;
    private Date birthday;

    public User(String username, String password, String nickname, Integer age, Date birthday) {
        this.username = username;
        this.password = password;
        this.nickname = nickname;
        this.age = age;
        this.birthday = birthday;
    }
}
